26:20
26:20

Lab: Generative AI Tools in Action

Estimated time: 30 minutes

Learning objectives

After completing this lab, you will be able to:

  • Leverage common generative AI tools that can help you with your daily tasks
  • Explore Google Gemini, OpenAI ChatGPT, and Microsoft Copilot for different use cases in daily tasks

Welcome to the lab on Generative AI Tools in Action!

Introduction

Generative AI models can generate new content based on contextual understanding and mimic human creative skills. They are trained on massive data sets of text, code, images, or audio and then use that information to produce new outputs.

Generative AI models are used in different applications and tools to enable users to leverage generative AI's potential. Some common generative AI tools are:

  • Gemini from Google
  • ChatGPT from OpenAI
  • Copilot from Microsoft

These tools can be useful for a number of tasks in daily life, including creative writing (writing stories and poems), travel planning, cooking, learning new concepts, skills, or languages, getting advice on physical fitness and mental health, writing emails, and summarizing text.

In this lab, you'll work on exercises that demonstrate some of these uses of the generative AI tools.

The generative AI tools take a prompt as input and then process it to generate new content as output.

Note: The prompts given in this lab are for samples only. You can write prompts based on your requirements to generate responses. However, you may get a different response even if you use prompts from this lab.

Exercise 1: Exploring Google Gemini

In this exercise, you'll leverage Google's AI-powered assistant, Gemini. It understands text, audio, video, and images. You can type your prompt or use the microphone icon to speak.

Scenario 1: Learning a new game

A generative AI tool like Gemini can be your personal coach when you want to learn a new skill or game. It can explain a game's mechanics, suggest learning resources, answer your questions in a clear way, and even analyze your gameplay for improvement.

Scenario: Sarah wants to learn to play chess. She doesn't know the rules or where to begin. Let's see how Sarah can use Google Gemini for this.

Think of a context and draft a statement or prompt for the desired text content you want from the tool. For better results, include specifics and details about the context of the required output.

  1. Open the link Gemini in your Windows browser to sign in or log in to Google's Gemini.

Note: If you cannot access Gemini by clicking on the link, copy the following URL and paste it into a browser.

  1. 1
  1. https://gemini.google.com/?hl=en

Note: If you are a first-time user, set up Google's Gemini account to Sign up using the steps given here Getting Started with Google's Gemini

  1. Write a clear and descriptive prompt in the Enter a prompt here field. For example, enter the below prompt.
  1. 1
  1. I want to learn how to play chess, but I'm a complete beginner. Can you help me get started?

  1. Click the Submit icon to generate a response.

The response generated by the tool at our end is shown below. Note that the response includes basic information about the game and references to a website and YouTube channel that can provide information.

Output from Gemini
The basics
The board: The chessboard is an eight-by-eight grid of alternating light and dark squares. Place the board so a light square is in the bottom right corner for both players.

Chessboard
The pieces: Each player has 16 pieces: 8 pawns, 2 rooks, 2 knights, 2 bishops, 1 queen, and 1 king. Pawns move differently than other pieces. You'll learn more about their movement as you go.
Setting up: Pawns go on the second rank (the row closest to you), with the other pieces lined up on the first rank (the row closest to your opponent). The rooks go in the corners, then knights, bishops, queen on her matching color square (white queen on white square), and finally the king.

Chess pieces setup

Taking turns: White always moves first. Players take turns moving one piece at a time (except for a special move called castling). Your goal is to capture your opponent's pieces and ultimately their king.

Learning the pieces:
There are many resources available online and offline to learn how each chess piece moves. Here's a quick rundown:
• Pawns: Pawns move one square forward most of the time, but two squares on their first move. They capture diagonally and cannot move backward.
Rooks: Rooks move any number of squares up, down, or sideways.
Knights: Knights move in an "L" shape – two squares in one direction and then one square perpendicularly. They are the only pieces that can jump over other pieces.
Bishops: Bishops move any number of squares diagonally, either always on light squares or always on dark squares.
Queen: The queen combines the moves of the rook and bishop, so she can move any number of squares in any direction (up, down, sideways, or diagonally).
King: The king can move one square in any direction. Protecting your king is essential; the game ends if your king is captured (checkmated).
Special moves:
There are two special moves in chess, you'll learn about as you get more comfortable:
Castling: This move involves moving your king two squares toward a rook, then hopping the rook over the king to the other side of it.
En Passant: This is a special pawn capture that can happen under specific circumstances.

Winning the game:
The goal of chess is to checkmate your opponent's king. A check is when you directly threaten the king with capture on your next move. A checkmate is when the king is in check and has no legal move to escape.

Getting started playing:
• There are many websites and apps where you can play chess against a computer or another person online. Chess.com and Lichess are popular options.
• You can also find chess sets at most toy stores or online retailers. Playing against a friend or family member is a great way to learn and practice.

Tips for beginners:

Focus on developing your pieces early on. Get your rooks, knights, and bishops out to squares where they can control the board.
Protect your king! Don't make moves that leave your king vulnerable to attack.
Think a few moves ahead. Consider the consequences of your move before you make it.
Don't be afraid to lose. Losing is part of the learning process. Analyze your mistakes and try to improve your game in the next match.
With a little practice, you'll be surprised at how quickly you can pick up the basics of chess. There's a whole world of strategy and tactics to explore as you get better, but for now, have fun learning the game!
  1. Generally, Google Gemini provides multiple drafts of a response. You can view alternative drafts by clicking the Show Drafts option. Click on a draft, say Draft 2, to view it. Consider the option that you consider best based on parameters like accuracy, relevance, and clarity.

Scenario 2: Writing a blog post about the revival of board games

Google Gemini can help you with creative writing tasks. You can craft captivating poems, generate witty dialogues for your screenplay, or brainstorm the structure and content of a blog post —all while collaborating with Gemini.

Scenario: Sarah wants to write a blog post about the revival of board games, targeting readers from different generations.

To start with, think of a context and draft a statement or prompt to seek the relevant output from the tool.

  1. Write a clear and descriptive prompt in the Enter a prompt here field. For example, enter the below prompt.
  1. 1
  1. Develop a blog post outline on "The Board Game Boom" with content sections tailored to specific age groups.

  1. Click the Submit icon to generate a response.

The response generated at our end is shown here. You can ask the tool further questions to get more detailed information about a specific section or topic of the blog.

Output from Gemini
Blog Post Outline: The Board Game Boom
I. Introduction (All Ages)
• Hook: Start with a fun anecdote about playing board games (e.g., childhood memory, recent game night).
• Thesis Statement: Briefly introduce the concept of the board game boom and its increasing popularity.
II. Reasons Behind the Boom (All Ages)
A. Escape from Screens:
Discuss the appeal of board games as an alternative to screen-based entertainment (especially for younger audiences).
B. Social Connection:
Highlight how board games foster face-to-face interaction and build social bonds.
C. Family Fun:
Emphasize the multigenerational appeal of board games and their ability to bring families together.
D. Strategic Challenge:
Mention the intellectual stimulation and problem-solving skills honed through board games. (Tailor the examples to different age groups)
- Younger audiences: Simple strategy games like matching or memory.
- Older audiences: More complex strategy games involving resource management or negotiation.
III. Board Game Boom for Different Age Groups (Tailored Content)
• A. Kids & Teens (Ages 5-18):
- Popular game categories (e.g., cooperative games, dexterity games, party games)
- Benefits of board games for this age group (e.g., learning problem-solving, developing social skills).
- Examples of age-appropriate games with brief descriptions.
• B. Adults (Ages 18+):
- Current trends in the board game industry (e.g., crowdfunding, thematic games, solo play options).
- Benefits of board games for adults (e.g., stress relief, fostering relationships).
- Examples of popular adult board games with brief descriptions.
• C. Seniors (Ages 55+):
- Classic board games experiencing a resurgence (e.g., Scrabble, Monopoly)
- Benefits of board games for seniors (e.g., maintaining cognitive function, staying socially connected).
- Examples of brain-teasing games or classic favorites with brief descriptions.
IV. Where to Find Board Games (All Ages)
• Local game stores
• Online retailers
• Board game cafes
V. Conclusion (All Ages)
• Briefly reiterate the appeal of board games and their role in bringing people together.
• Encourage readers to explore the world of board games and find their next favorite.
• Optional: Call to action (e.g., share your favorite board game in the comments).
Bonus Section (All Ages)
• Board game recommendations based on specific interests (e.g., strategy, storytelling, cooperative play).
Note:
This outline provides a framework. Feel free to adjust the content and length of each section based on your target audience and blog platform.
  1. Let's write a prompt to ask about the list of board games for different age groups.
  1. 1
  1. Can you provide a table or list that recommends specific board games for different age groups.

  1. Click the Submit icon. Here is the response generated at our end.
Output from Gemini
Absolutely! Here's a list rekomendasi (Indonesian for "recommendation") of specific board games for different age groups, incorporating some of the most popular and highly-rated options:
Board Games for Kids & Teens (Ages 5-18):
Category: Cooperative Games
o Game: Robinson Crusoe: Adventures on the Cursed Island ( )
- Ages: 10+
- Description: Work together as a team to survive on a deserted island, facing challenges and overcoming obstacles. This game encourages communication, planning, and teamwork.
Category: Dexterity Games
o Game: Rhino Hero: Super Battle ( )
- Ages: 7+
- Description: A fast-paced and exciting game where players stack colorful tiles to build precarious towers. It requires good hand-eye coordination and quick thinking.
Category: Party Games
o Game: Just One ( )
- Ages: 8+
- Description: A creative and fun guessing game where players try to give cryptic clues to help their teammate guess a secret word. It is a great game for laughter and building communication skills.
Board Games for Adults (Ages 18+):
Category: Crowdfunding Favorite
o Game: Gloomhaven ( )
- Ages: 14+
- Description: A sprawling campaign-based game with rich storytelling and tactical combat. This game is perfect for gamers who enjoy a deep and immersive experience (although the playtime can be quite long).
Category: Thematic Game
o Game: Wingspan ( )
- Ages: 10+
- Description: A beautiful game where players attract birds to their wildlife preserves. It's relaxing and strategic, with stunning artwork and interesting bird facts.
Category: Solo Play Option
o Game: Friday ( )
- Ages: 14+
- Description: A solo game where you take on the role of Robinson Crusoe, trying to survive on a deserted island. It's a challenging and rewarding experience for solo gamers.
Board Games for Seniors (Ages 55+):
Category: Classic Resurgence
o Game: Scrabble ( )
- Ages: 8+
- Description: A timeless word game that challenges players to build high-scoring words on a crossword-style board. It's a great way to keep the mind sharp and enjoy friendly competition.
Category: Brain-Teasing Game
o Game: Qwixx ( )
- Ages: 8+
- Description: A quick and easy dice-rolling game where players try to score points by rolling specific number combinations. It's a fun and engaging game that keeps the mind active.
Category: Classic Favorite
o Game: Ticket to Ride ( )
- Ages: 8+
- Description: A strategic game where players collect colored train cars to complete railway routes across the United States. It's a great game for all ages, with easy-to-learn rules and a moderate amount of strategy.
This is just a small sampling of the many great board games available for all ages. With so many options to choose from, there's sure to be a perfect game for everyone. So why not gather your friends and family, turn off the screens, and enjoy the fun and connection that board games can bring?

Try Yourself!

You can continue this conversation with the tool to generate relevant ideas or content about the blog, such as:
• Are there any educational apps or online resources that share the learning benefits of playing board games?
• Can you craft a catchy introduction for the blog post that attracts the reader's interest in the revival of board games?

Exercise 2: Experimenting with ChatGPT

ChatGPT can generate human-like text and engage in human-like conversation, making it a versatile tool for a wide range of applications. It can help you brainstorm ideas, generate creative content, and summarize content. You can converse with ChatGPT to seek advice on various aspects, including managing your finances, planning a trip, or setting your health and wellness goals.

Logging in to ChatGPT

You can access OpenAI's ChatGPT interface by navigating to the link https://chatgpt.com/ in your browser window and logging in to ChatGPT.

Note: If you cannot access ChatGPT by clicking on the link, copy the following URL and paste it into a browser.

  1. 1
  1. https://chat.openai.com/

Note: If you are a first-time user, set up OpenAI's ChatGPT account to Sign up using the steps given here Getting started to OpenAI's ChatGPT.

Scenario 1: Summarizing text

Summarization is required to extract meaningful and crisp information from long textual components. Writing a summary of long paragraphs or documents can be time-consuming. However, a generative AI tool like ChatGPT can simplify summarization.

Scenario: Alex wants to summarize the following blog from IBM blog post.

Think of a context and draft a statement or prompt for the desired content you want from the tool.

  1. Write a clear and descriptive prompt in the Enter a prompt here field. For example, enter the below prompt.
  1. 1
  1. Summarize the article on 'AI this Earth Day: Top opportunities to advance sustainability initiatives' based on the [IBM blog post] (https://www.ibm.com/blog/ai-earth-day/) into a small paragraph.

  1. Click the Send icon or press the Enter key to generate a response.

The response generated at our end is shown here.

Scenario 2: Conversing with ChatGPT to plan a weekend trip

Let's demonstrate ChatGPT's conversational capabilities through a practical, everyday scenario. ChatGPT can assist in numerous ways, including planning a trip, by providing detailed, interactive guidance.

Scenario: Alex has been assigned to a three-month on-site project in Delhi. This weekend, he is planning a short trip to a nearby destination in the Delhi area.

Think of a context and draft a statement or prompt for the desired content you want from the tool.

  1. Write a clear and descriptive prompt in the Enter a prompt here field.
  1. 1
  1. I need help planning a weekend getaway. Any suggestions for places to visit within a 3-hour drive from Delhi?

  1. Click the Send icon or press the Enter key to generate a response.

The response generated at our end is shown here.

Output from ChatGPT
Sure, here are a few great options for a weekend getaway within a 3-hour drive from Delhi:
1. Neemrana: Known for its historical Neemrana Fort Palace, it offers a blend of history and luxury with beautiful views.
2. Jaipur: The Pink City, famous for its forts (like Amber Fort and Jaigarh Fort), palaces (City Palace), and vibrant markets (like Johari Bazaar).
3. Agra: Home to the iconic Taj Mahal, Agra Fort, and Fatehpur Sikri, offering a deep dive into Mughal architecture and history.
4. Sariska National Park: A great spot for wildlife enthusiasts, with a chance to spot tigers, leopards, and various bird species.
5. Mathura-Vrindavan: Known for its religious significance in Hinduism, with temples, ghats, and a rich cultural heritage.
6. Rishikesh: Perfect for adventure seekers with activities like river rafting, bungee jumping, and yoga retreats amidst the serene Ganges River.
7. Jim Corbett National Park: Ideal for nature lovers and wildlife enthusiasts, offering a chance to see tigers, elephants, and diverse flora and fauna.
Depending on your interests—whether historical, cultural, adventurous, or nature-oriented—these places offer a variety of experiences to enjoy over a weekend.
  1. Enter a prompt to ask further questions to explore the place you want to visit. Let's ask about the recommendations regarding a hotel or a place to stay.
  1. 1
  1. Jim Corbett National Park sounds amazing. Any recommendations for a hotel or a place to stay there?

  1. Click the Send icon or press the Enter key to generate a response. Here is a sample response generated.
Output from ChatGPT
Jim Corbett National Park has several options for accommodation ranging from luxury resorts to budget-friendly lodges. Here are a few recommendations across different price ranges:
1. Luxury Resorts:
o The Taj Corbett Resort & Spa: Known for its luxurious amenities and beautiful location near the park.
o Aahana - The Corbett Wilderness: Offers eco-friendly luxury with spacious rooms and great hospitality.
2. Mid-Range Options:
o Corbett Woods Resort: Provides comfortable rooms with a rustic charm and proximity to nature.
o Corbett The Baagh Spa & Resort: Known for its serene ambiance and excellent service.
3. Budget-Friendly Lodges:
o Corbett Jungle Club Resort: Offers budget accommodation with basic amenities and proximity to the park.
o Solluna Resort: Provides a blend of affordability and comfort with decent facilities.
When booking, consider the location (preferably near the park's entry gates for convenience), amenities offered (like safari arrangements, dining options, and recreational activities), and reviews to ensure a pleasant stay aligned with your preferences.
  1. Continue the conversation to plan for the trip. Let's ask about the itinerary for a two-day trip.
  1. 1
  1. That sounds perfect. Could you help me with an itinerary for a two-day trip?

  1. Click the Send icon and generate the response. This is a response generated at our end.
Output from ChatGPT
Certainly! Here's a suggested itinerary for a two-day trip to Jim Corbett National Park:
Day 1: Arrival and Safari
Morning:
• Depart from Delhi early in the morning to reach Jim Corbett National Park by mid-morning.
• Check-in at your chosen accommodation and freshen up.
Afternoon:
• Enjoy a delicious lunch at the resort.
• Take some time to relax and explore the resort's amenities.
Evening:
• In the late afternoon, head out for a wildlife safari (Jeep safari or Canter safari) in the designated zone of the national park.
• Explore the diverse flora and fauna, with chances to spot tigers, elephants, deer, and various bird species.
• Return to the resort after the safari.
Night:
• Dinner at the resort.
• Relax and unwind, perhaps with a bonfire or cultural evening organized by the resort.
Day 2: Explore and Departure
Morning:
• Early morning safari (optional, but recommended for better chances of wildlife sightings).
• Return to the resort for a hearty breakfast.
Late Morning/Early Afternoon:
• Depending on your preference, you can either relax at the resort, indulge in spa treatments (if available), or explore nearby attractions like Garjiya Devi Temple or Corbett Museum.
Afternoon:
• Check out from the resort after lunch.
• Depart for Delhi, enjoying the scenic drive back.
This itinerary allows you to experience the best of Jim Corbett National Park's wildlife, natural beauty, and relaxation within a short two-day trip. Adjustments can be made based on your interests and the specific activities available during your visit.

Try Yourself!

You can continue this conversation by asking further questions about the place you want to visit, such as:

• What is the most convenient commuting mode to reach this place?
• Are there any local dishes that I should try during my stay?
• What are some essential travel tips or things to keep in mind while visiting this place?

Exercise 3: Experimenting with Microsoft Copilot

Copilot is a versatile AI companion that can assist with various tasks for both text and image creation. Copilot can be useful for writing, summarization, and translations. It can also create visual content, such as illustrations, logos, or concept art.

Scenario: Creating the plot for a fictitious story

Scenario: Jane wants to write a fictitious story about the friendship between a young boy and a robot.

To start with, think of a context and draft a statement or prompt to seek the relevant output from the tool.

  1. Open a link to Copilot (microsoft.com) in your browser and select Sign in or Log In at the top-right corner of the screen.

Note: If you cannot access Microsoft Copilot by clicking on the link, copy the following URL and paste it into a browser.

  1. 1
  1. https://copilot.microsoft.com/

Note: If you are a first-time user, set up Microsoft's Copilot account to Sign up using the steps given here Getting Started with Microsoft's Copilot.

  1. To start with, let's think of a context and draft a statement or prompt to seek the relevant output from the tool, asking about suggestions for the plot of the story. Enter a prompt in the field.
  1. 1
  1. I want to create a short science fiction story for kids centered on the friendship between a young boy and a robot. Could you suggest some plot ideas for this story?

  1. Click the Submit icon to generate the response. Here is the sample response.
Output from Copilot
Certainly! Here are some delightful plot ideas for your science fiction story about a young boy and his robot friend:
1. Robot Memories:
o After a man's passing, his helper robot is inherited by his son. The robot holds decades of the deceased man's secrets in its memory. As the son learns things about his father he never wanted to know, one memory convinces him he must destroy the robot. Unfortunately, it has escaped, and now he must track it down [1].
2. Robot Exodus:
o Bitter at how robots have replaced human labor, a programmer sends out a virus that disables and self-destructs many robots. The surviving robots know who he is and want revenge. They're determined to hunt him down [1].
3. Cyborg Doctors:
o In a world where humans become more cyborg-like each year, Teddy Robinson, a cyborg doctor, faces a unique patient—one who might not even be considered fully human. Their interactions lead to unexpected discoveries and challenges [1].
4. Robot Imposters:
o Sam Carpenter, an engineer, discovers that the company's mind and body replicants are being used to replace world leaders with doppelgangers. He sets out to uncover the truth and prevent a global crisis [1].
5. Underground Android Lab:
o Simon Jackson buys an isolated cabin and discovers a hidden underground bunker filled with dangerous androids left behind by the previous owner. These androids harbor secrets that could change Simon's life forever [1].
6. Robot Remote Escape:
o Hubert Chamberlain's stolen robot assistant contacts him, but its GPS is disabled, and the communication network is encrypted. Hubert must regain control of the robot, as it holds crucial secrets about his past [1].
7. Robot Bounty Hunter:
o Eddie Boone, a robot bounty hunter, faces a tough challenge when a rogue robot disappears into Robotsville—the only Robot-only city on Earth. Tracking it down becomes a thrilling adventure [1].
Feel free to choose or combine elements from these ideas to create an engaging and heartwarming story for kids! 🚀🤖📚 [1].
Source: Conversation with Copilot, 7/8/2024
1. 15 Sci-fi Robot Story Ideas - Science Fiction Ideas
2. Sci-Fi Story Ideas and Writing Prompts - ProWritingAid
3. 8 Robot Story Books for Kids to Spark Imagination - STEMtropolis
4. 38 Sci-Fi Books for Kids That Are Out of This World!
5. 110+ Sci-Fi Writing Prompts (+ Sci-Fi Story Idea Generator)
  1. Let's select an idea for the plot and ask Copilot to generate a related illustration. Enter the following prompt:
  1. 1
  1. With regard to the Robot Memories plot idea, could you provide a related illustration.

  1. Click the Submit icon to generate the output. Copilot provides a set of four illustrations. The images generated at our end are shown here.

You can select an image and consider further refining it.

Summary

Congratulations on completing the lab on Generative AI Tools in Action.

In this lab, you explored Google's Gemini, Microsoft's Copilot, and OpenAI's ChatGPT tools and their capabilities to address your daily tasks. Continue experimenting with these tools to explore various use cases for content generation.

Author(s)

IBM Skills Network Team

Copyright © IBM Corporation. All rights reserved.